﻿using Corina.Datamodel.Entities;
using Corina.Enumerations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Corina.DataContext.Service
{
    public class DeviceKindService : ServiceBase
    {
        public List<DeviceKindInfo> GetAllItems(string connectionString)
        {
            return DbOperator.GetEntities<DeviceKindInfo>(connectionString, new List<string>() { }, new List<object>() { });
        }

        public bool Update(string connectionString, DeviceKindInfo entity, EntityOperation operation)
        {
            return DbOperator.UpdateEntity(connectionString, entity, operation);
        }
    }
}
